numbers = [1, 2, 3, 4]
combinations = []

for i in numbers:
    for j in numbers:
        for k in numbers:
            if i != j and i != k and j != k:
                combinations.append(i * 100 + j * 10 + k)

print(f"可以组成 {len(combinations)} 个互不相同且无重复数字的三位数。")
print("这些三位数是：")
for number in combinations:
    print(number)
